package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the EQUIP_ORDER database table.
 * 
 */
@Entity
@Table(name="EQUIP_ORDER")
@NamedQuery(name="EquipOrder.findAll", query="SELECT e FROM EquipOrder e")
public class EquipOrder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Override
	public String toString() {
		return "EquipOrder [eorderId=" + eorderId + ", eopPhone=" + eopPhone + ", eorderAddress=" + eorderAddress
				+ ", eorderBdate=" + eorderBdate + ", eorderEdate=" + eorderEdate + ", eorderName=" + eorderName
				+ ", eorderState=" + eorderState + ", busId=" + busId + "]";
	}

	@Id
	@Column(name="EORDER_ID")
	private String eorderId;

	@Column(name="EOP_PHONE")
	private String eopPhone;

	@Column(name="EORDER_ADDRESS")
	private String eorderAddress;

	@Temporal(TemporalType.DATE)
	@Column(name="EORDER_BDATE")
	private Date eorderBdate;

	@Temporal(TemporalType.DATE)
	@Column(name="EORDER_EDATE")
	private Date eorderEdate;

	@Column(name="EORDER_NAME")
	private String eorderName;

	@Column(name="EORDER_STATE")
	private String eorderState;

	@Column(name="EORDER_SUMPRICE")
	private BigDecimal eorderSumprice;
	//bi-directional many-to-one association to EquipPlan
	@OneToOne
	@JoinColumn(name="EPLAN_ID")
	private EquipPlan equipPlan;

	//bi-directional many-to-one association to EquipStorage
	@OneToOne(mappedBy="equipOrder")
	private EquipStorage equipStorages;
	
	@Column(name="BUS_ID")
	private long busId;
	
	@Column(name="BUS_ORDERNAME")
	private String busOrdername;

	public String getBusOrdername() {
		return busOrdername;
	}

	public void setBusOrdername(String busOrdername) {
		this.busOrdername = busOrdername;
	}

	public long getBusId() {
		return busId;
	}

	public void setBusId(long busId) {
		this.busId = busId;
	}

	public EquipOrder() {
	}

	public String getEorderId() {
		return this.eorderId;
	}

	public void setEorderId(String eorderId) {
		this.eorderId = eorderId;
	}

	public String getEopPhone() {
		return this.eopPhone;
	}

	public void setEopPhone(String eopPhone) {
		this.eopPhone = eopPhone;
	}

	public String getEorderAddress() {
		return this.eorderAddress;
	}

	public void setEorderAddress(String eorderAddress) {
		this.eorderAddress = eorderAddress;
	}

	public Date getEorderBdate() {
		return this.eorderBdate;
	}

	public void setEorderBdate(Date eorderBdate) {
		this.eorderBdate = eorderBdate;
	}

	public Date getEorderEdate() {
		return this.eorderEdate;
	}

	public void setEorderEdate(Date eorderEdate) {
		this.eorderEdate = eorderEdate;
	}

	public String getEorderName() {
		return this.eorderName;
	}

	public void setEorderName(String eorderName) {
		this.eorderName = eorderName;
	}

	public String getEorderState() {
		return this.eorderState;
	}

	public void setEorderState(String eorderState) {
		this.eorderState = eorderState;
	}

	public BigDecimal getEorderSumprice() {
		return this.eorderSumprice;
	}

	public void setEorderSumprice(BigDecimal eorderSumprice) {
		this.eorderSumprice = eorderSumprice;
	}

	public EquipPlan getEquipPlan() {
		return this.equipPlan;
	}

	public void setEquipPlan(EquipPlan equipPlan) {
		this.equipPlan = equipPlan;
	}

	public EquipStorage getEquipStorages() {
		return equipStorages;
	}

	public void setEquipStorages(EquipStorage equipStorages) {
		this.equipStorages = equipStorages;
	}
	

}